var a = [1,2,3,4,5];
var newa=[]
a.forEach(function (item,index){
    item=item*2;
    newa.push(item)
})
document.write(newa);